// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import WeVue from 'we-vue'
import VueWechatTitle from 'vue-wechat-title'
import 'we-vue/lib/style.css'
import '../static/reset.css'
import global from '../test/unit/global'
import myUtils from '../test/unit/myUtils'
import myFilters from '../test/unit/myFilters'
import { InfiniteScroll } from 'we-vue'
import Mui from 'vue-awesome-mui'



for (let key in myFilters){  //一定要放在 new Vue之前 注册全局过滤器
  Vue.filter(key, myFilters[key])
}


Vue.config.productionTip = false;
Vue.prototype.$global = global;
Vue.prototype.$myUtils = myUtils;

Vue.use(WeVue);
Vue.use(VueWechatTitle);
Vue.use(InfiniteScroll);
Vue.use(Mui)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
});
